package com.breaktian.network.api.finance;

/**
 * Created by keke.tian on 2018/4/11.
 */

public class ApiResult<T> {
    // 金融域
    public int resultCode;
    public String message;
    public boolean success;
    public T results;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getResults() {
        return results;
    }

    public void setResults(T results) {
        this.results = results;
    }

    public static class ApiError{
        public int resultCode;
        public String message;

        public ApiError(int resultCode, String message) {
            this.resultCode = resultCode;
            this.message = message;
        }

        public int getCode() {
            return resultCode;
        }

        public void setResultCode(int resultCode) {
            this.resultCode = resultCode;
        }

        public String getMsg() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }
}
